package com.cn.model;

public class BooksModel {
	 private int id;
	 private String bname;
	 private String author;
	 private int stock;
	 private double price;

	public BooksModel() {
	}
	public BooksModel(int id, String bname, String author, int stock, double price) {
		this.id = id;
		this.bname = bname;
		this.author = author;
		this.stock = stock;
		this.price = price;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getBname() {
		return bname;
	}
	public void setBname(String bname) {
		this.bname = bname;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public int getStock() {
		return stock;
	}
	public void setStock(int stock) {
		this.stock = stock;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	@Override
	public String toString() {
		return "BooksModel [id=" + id + ", bname=" + bname + ", author=" + author + ", stock=" + stock + ", price=" + price
				+ "]";
	}
	 
 
}
